package(default_visibility = ["//visibility:public"])

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_test",
    "go_library",
)

go_test(
    name = "go_default_test",
    srcs = [
        "account_test.go",
        "archive_test.go",
        "article_test.go",
        "coin_test.go",
        "dynamic_test.go",
        "elec_test.go",
        "feedback_test.go",
        "help_test.go",
        "icon_test.go",
        "ip_test.go",
        "nav_test.go",
        "newlist_test.go",
        "online_test.go",
        "ranking_test.go",
        "resource_test.go",
        "search_test.go",
        "tag_test.go",
    ],
    embed = [":go_default_library"],
    rundir = ".",
    tags = ["automanaged"],
    deps = [
        "//app/interface/main/web/conf:go_default_library",
        "//app/interface/main/web/model:go_default_library",
        "//app/service/main/resource/model:go_default_library",
        "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
    ],
)

go_library(
    name = "go_default_library",
    srcs = [
        "account.go",
        "archive.go",
        "article.go",
        "bnj.go",
        "broadcast.go",
        "coin.go",
        "dynamic.go",
        "elec.go",
        "feedback.go",
        "help.go",
        "icon.go",
        "ip.go",
        "like.go",
        "nav.go",
        "newlist.go",
        "online.go",
        "ranking.go",
        "resource.go",
        "search.go",
        "service.go",
        "tag.go",
        "wechat.go",
    ],
    importpath = "go-common/app/interface/main/web/service",
    tags = ["automanaged"],
    deps = [
        "//app/interface/main/dm2/model:go_default_library",
        "//app/interface/main/dm2/rpc/client:go_default_library",
        "//app/interface/main/tag/model:go_default_library",
        "//app/interface/main/tag/rpc/client:go_default_library",
        "//app/interface/main/web/conf:go_default_library",
        "//app/interface/main/web/dao:go_default_library",
        "//app/interface/main/web/model:go_default_library",
        "//app/interface/openplatform/article/model:go_default_library",
        "//app/interface/openplatform/article/rpc/client:go_default_library",
        "//app/service/main/account/api:go_default_library",
        "//app/service/main/account/model:go_default_library",
        "//app/service/main/archive/api:go_default_library",
        "//app/service/main/archive/api/gorpc:go_default_library",
        "//app/service/main/archive/model/archive:go_default_library",
        "//app/service/main/broadcast/api/grpc/v1:go_default_library",
        "//app/service/main/coin/api:go_default_library",
        "//app/service/main/coupon/model:go_default_library",
        "//app/service/main/coupon/rpc/client:go_default_library",
        "//app/service/main/dynamic/model:go_default_library",
        "//app/service/main/dynamic/rpc/client:go_default_library",
        "//app/service/main/favorite/api/gorpc:go_default_library",
        "//app/service/main/favorite/model:go_default_library",
        "//app/service/main/location/model:go_default_library",
        "//app/service/main/location/rpc/client:go_default_library",
        "//app/service/main/relation/model:go_default_library",
        "//app/service/main/relation/rpc/client:go_default_library",
        "//app/service/main/resource/model:go_default_library",
        "//app/service/main/resource/rpc/client:go_default_library",
        "//app/service/main/share/api:go_default_library",
        "//app/service/main/thumbup/model:go_default_library",
        "//app/service/main/thumbup/rpc/client:go_default_library",
        "//app/service/main/ugcpay/api/grpc/v1:go_default_library",
        "//library/conf/env:go_default_library",
        "//library/ecode:go_default_library",
        "//library/log:go_default_library",
        "//library/log/anticheat:go_default_library",
        "//library/log/infoc:go_default_library",
        "//library/net/metadata:go_default_library",
        "//library/sync/errgroup:go_default_library",
        "//library/sync/pipeline/fanout:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [":package-srcs"],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_test",
    "go_library",
)
